<?php
/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

/* solo gli amministratori registrati possono cambiare il testo dell'home page */

//$user=user_getuser();
//if ($user==""){
//    echo("riservato agli utenti iscritti");
//    httplog();
//    die();
//}

if (admin_verifyIP()){


if ((defined('LIBGROUP') && group_getusergroup("webmaster",user_getuser())) || admin_verifyIP()){

    $save=$_POST['save'];
    $file="datas/applications/FWInstaller/necessary.txt";
    $contenuto=$_POST['contenuto'];
    if($save!=""){
    $fp=fopen($file,"w");
    fwrite($fp,$contenuto);
    fclose($fp);
    }
}
/*******************************************************************************/

?>

<? if ((defined('LIBGROUP') && group_getusergroup("webmaster",user_getuser())) || admin_verifyIP()){ ?>


<div class='table'>
    <h3>FWInstaller_Edit_Necessary</h3><hr />
    <p>

<?php
if (admin_verifyIP()){
?>

<?php
$file="datas/applications/FWInstaller/necessary.txt";
//$path="prove/";
if (file_exists($file)){ $contenuto = @join(@file($file));?>
<FORM action="index.php?appname=FWInstaller&subapp=FWInstaller_Edit_Necessary&op=save" method="POST">
<textarea  name='contenuto' cols="60" rows="24">
<?
	print htmlentities($contenuto); ?>
</textarea>
<br>
<br>
<INPUT type="submit" name="save" value="SALVA">
<INPUT type="reset" name="annulla" value="ANNULLA">
</FORM>
<br>
<br>
<br>
<? }
?>

<style>
h3
{
	margin: 0;
	font-size: 14px;
}

</style>
<?php //echo join(file("applications/FWInstaller/FWInstaller/necessary.txt")); ?>
</p>

<? } ?>

	<!-- footer -->
	<br><hr size="1" width="98%">
	Powered by <a href="http://www.nost.it" target="_blank">FWInstaller</a> V.2.4.3<br>Copyright &#169; 2006 Daniele Deplano

</p>
</div>

<? } ?>
<? } ?>
